<?php

use Illuminate\Database\Seeder;

class SettingsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$settings = [
    		[
    			'company_id' => 3,
    			'register' => json_encode([
    				'stature' => 'required',
    				'education' => 'required',
    				'address' => 'required',
    				'marital' => 'required',
    				'urgency_name' => 'required',
    				'urgency_mobile' => 'required',
    				'urgency_relation' => 'required',
    				'trade' => 'required',
    				'skill' => 'required',
    				'channel' => 'required',
				]),
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'company_id' => 4,
    			'register' => json_encode([
    				'stature' => 'required',
    				'education' => 'required',
    				'address' => 'required',
    				'marital' => 'required',
    				'urgency_name' => 'required',
    				'urgency_mobile' => 'required',
    				'urgency_relation' => 'required',
    				'trade' => 'required',
    				'skill' => 'required',
    				'channel' => 'required',
				]),
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			]
		];

    	DB::table('settings')->insert($settings);
    }
}
